#pragma once
#include "Article.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>

#include "ArticleRegister.h"

using namespace std;

class News :
	public Article
{
private:
	string newstype;
public:

	News() : newstype("N/A") { }

	News(int id, string date, string title, string writer, int n, string keyword, string newstype)
		:Article(id, date, title, writer, n, keyword)
	{
		this->newstype = newstype;
	}

	~News()	{ }

	void setNewstype(string newstype){ this->newstype = newstype; }
	string getNewstype(){ return newstype; }

	void print()
	{
		Article::print();
		cout << ", Newstype: " << newstype;
	}
};

